package com.jms.crawler.service;

import java.util.Map;

public abstract class DataCrawlService {

    //服务唯一标识
    protected String uniqueId;

    //线程终止标识 0就绪 1终止 2运行
    protected int thread_end = 0;

    //服务详细参数
    protected Map<String, Object> taskContent;

    public String getUniqueId() {
        return uniqueId;
    }

    public int getThread_end() {
        return thread_end;
    }

    public Map<String, Object> getTaskContent() {
        return taskContent;
    }

    /**
     * 终止爬取
     */
    public abstract void stopCrawl();

    /**
     * 开始爬取
     */
    public abstract void startCrawl();
}
